#!/bin/bash
read -p "user name: " name
stty -echo
read -p "password: " pass
stty echo
useradd $name
echo "$pass" | passwd --stdin $name